import server from "../../utils/request";

// 查询列表
export function getList(queryParams) {
    return server.get('/soil/query', { params: queryParams });
};
// 查询设备
export function soildevice(queryParams) {
    return server.get('/soil/soildevice', { params: queryParams });
};
// 参数查询
export function getSearch(search, dname) {

    return server.get(`/soil/query?${search}=` + dname);
};

// 删除接口 
export function getDelete(id) {
    return server.delete('/soil/delete?sid=' + id);
};
//新增接口
export function getAdd(data) {
    return server.post('/soil/add', data);
};
//修改接口
export function getUpdate(data) {
    return server.put('/soil/update', data);
};